<#import "common/spring.ftl" as spring> 
<!DOCTYPE html>
<html>
    <head>
    	<meta charset="UTF-8" />
    	<#include "common/resource.ftl">
    </head>
    <body>
		<div class="container-fluid">
        	<div class="row-fluid" style="margin-top: 120px">
        		<div class="span12">
        			<div class="row-fluid">
        				<div class="span2">
        				</div>
        				<div class="span5">
        					<img src="<@spring.url '/resource/img/login-bg.jpg' />" />
        				</div>
		        		<div class="span3">
							<ul class="nav nav-tabs" id="loginTab">
							  <li class="active"><a href="#login" data-toggle="tab">登录</a></li>
							  <li><a href="#register" data-toggle="tab">注册</a></li>
							</ul>							 
							<div class="tab-content">
							  <div class="tab-pane active" id="login">
							  	<form class="form-vertical" action="<@spring.url '/login'/>" method="post">
							  		<div class="control-group">
										<input type="text" name="email" class="span10" placeholder="邮件">
								  	</div>
								  	<div class="control-group">
								  		<input type="password" name="password" class="span10" placeholder="密码">
								  	</div>
								  	<button type="submit" class="btn btn-primary">登录</button>
								</form>
							  </div>
							  <div class="tab-pane" id="register">
							  	<form  class="form-vertical" action="<@spring.url '/register'/>" method="post">
								 	<div class="control-group">
								  		<input type="text" class="span10" placeholder="邮件">
								  	</div>
								  	<div class="control-group">
								  		<input type="password" class="span10" placeholder="密码">
								  	</div>
								  	<button type="submit" class="btn btn-primary">注册</button>
								</form>
							  </div>
							</div>
		        		</div>
        			</div>
        			<div class="span2">
        			</div>
        		</div>
        	</div>
        </div>        	
    </body>
</html>